window.onload = function (){
    var info = getQuery("loginError");
    if (info == "noCustom"){
        $("errDiv").innerHTML="请以顾客身份登录";
    }else  if (info == "noSend"){
        $("errDiv").innerHTML="请以送货员身份登录";
    }else  if (info == "noManager"){
        $("errDiv").innerHTML="请以管理员身份登录";
    }


}
function land(){
    axios.get("/user/login",{
        params:{
            userName:$("userName").value,
            pwd:$("pwd").value,
        }
    }).then(e=>{
        var info = e.data;
        if ("顾客" == info){
            location.href="/index.html";
        }else if ("送货员" == info){
            location.href="/send/send.html"
        }else if ("管理员" == info){
            location.href="/manager/orderManager.html"
        }else{
            $("errDiv").innerHTML="登录失败";
        }
    })
}